package agenda;


import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.Map;



public class AgendaImpl extends UnicastRemoteObject implements _Operations_LesAgendas  {
	
	LesAgendas agendas;
	
	public AgendaImpl() throws RemoteException {
		super();
		this.agendas = new LesAgendas();
	}
	
	@Override
	public LesAgendas chargerLesAgendas(String file) throws RemoteException {
		System.out.println("testffffffff");
		return agendas.chargerAgendas(file);
	}
	
	@Override
	public void sauverLesAgendas(String file) throws RemoteException{
		agendas.sauverAgendas(file);
	}
	
	@Override
	public Map<String, Agenda> getAgendas() throws RemoteException{
		return agendas.getAgendas();
	}


	@Override
	public void addAgenda(String login) throws RemoteException{
		agendas.addAgenda(login);
	}

	@Override
	public void suppAgenda(String login) throws RemoteException{
		agendas.suppAgenda(login);
	}

	@Override
	public Agenda getAgenda(String login)throws RemoteException {
		return agendas.getAgenda(login);
	}
	

}
